/* eslint-disable */
import React from "react";
import {BrowserRouter, Route, Switch} from "react-router-dom";
import {Button} from "antd";
import "./App.css";


//登陆
import Login from "./view/Login/Login";

//首页
import Home from "./view/Home/Home";

//Main
import Main from "./view/Main/Main";

//Index
import Index from "./view/Index/Index";

class App extends React.Component {
	render() {
		return (

			<BrowserRouter>
				{/*<Button type="primary">Button</Button>*/}

				{/* 强制匹配 Switch */}
				<Switch>
					{/* 一级路由 */}
					{/* <Route path="/news/:id/:title" component={News} ></Route> */}
					<Route path="/login" component={Login}></Route>
					<Route path="/main" component={Main}></Route>
					<Route path="/index" component={Index}></Route>
					<Route path="/" component={Home}></Route>
				</Switch>
				{/* <img src={logo} className="App-logo" alt="logo" /> */}
			</BrowserRouter>
		);
	}

}

export default App;


// import logo from './logo.svg';
// import './App.css';
//
// function App() {
//   return (
//     <div className="App">
//       <header className="App-header">
//         <img src={logo} className="App-logo" alt="logo" />
//         <p>
//           Edit <code>src/App.js</code> and save to reload.
//         </p>
//         <a
//           className="App-link"
//           href="https://reactjs.org"
//           target="_blank"
//           rel="noopener noreferrer"
//         >
//           Learn React
//         </a>
//       </header>
//     </div>
//   );
// }
//
// export default App;
